package com.lugea.member.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.lugea.common.annotations.ApiMethod;

import lombok.extern.slf4j.Slf4j;

/**
 * @author enluw
 * @date 2020/1/25
 * @description
 */
@RestController
@RequestMapping("/user/permission")
@Slf4j
public class LoginController {

    /**
     * 登录
     * 
     * @return
     */
    @ApiMethod
    @RequestMapping("/login")
    public Map login() {
        LoginController.log.info("1231");
        HashMap<String, String> stringStringHashMap = new HashMap<>();
        stringStringHashMap.put("123", "123");
        return stringStringHashMap;
    }

    /**
     * 登出
     * 
     * @return
     */
    @ApiMethod
    @RequestMapping("logout")
    public Object logout() {
        return new Object();
    }

}
